import { createRouter, createWebHistory } from "vue-router";
const router = createRouter({
  history:createWebHistory(),
  routes:[
    {
      path:'/',
      redirect:"/discovery"
    },
    {
      path:"/discovery",
      name:"discovery",
      component:()=>import('@/views/discovery'),
      meta:{
        title:"发现"
      }
    },
    {
      path:"/match",
      name:"match",
      component:()=>import('@/views/match'),
      meta:{
        title:"匹配"
      }
    },
    {
      path:"/workBench-writing",
      name:"workBench-writing",
      component:()=>import('@/views/my'),
      meta:{
        title:"文章编辑"
      }
    },
    {
      path:"/workBench-video",
      name:"workBench-video",
      component:()=>import('@/views/my'),
      meta:{
        title:"视频编辑"
      }
    },
    {
      path:"/message",
      name:"message",
      component:()=>import('@/views/message'),
      meta:{
        title:"消息"
      }
    },
    {
      path:"/my",
      name:"my",
      component:()=>import('@/views/my'),
      meta:{
        title:"我的"
      }
    },
    {
      path:"/login",
      name:"login",
      component:()=>import('@/views/login'),
      meta:{
        title:"登录"
      }
    },
    {
      path:"/hobby",
      name:"hobby",
      component:()=>import('@/views/hobby'),
      meta:{
        title:"兴趣"
      }
    },
    {
      path:"/myClub",
      name:"myClub",
      component:()=>import('@/views/myClub'),
      meta:{
        title:"我的社团"
      }
    }
  ]
})
export default router